<?php
	$css_list[0]['url'][] = './tpl/css/album.css';
	$js_list[0] = './tpl/js/album.js';
?>
<!--{template inc/header}-->
<div class="blank12"></div>
<div class="wrapper album_index_create">
	<h1>{$_FANWE['setting']['site_name']}-杂志社</h1>
	<p>
		收录我喜欢的！<br/>
		用专一的态度，把它们记录下来。
	</p>
	<a href="{u album/create}" class="aic_btn">创建新杂志社</a>
</div>
<div class="blank6"></div>
<div class="wrapper album_book_list album_index_best">
	<h2>今日推荐</h2>
	<ul>
		<!--{eval $index = 0;}-->
		<!--{loop $best_album $album}-->
		<!--{if $index > 3}-->
		<!--{eval break;}-->
		<!--{/if}-->
		<li>
			<a class="abl_big" target="_blank" href="{$album['url']}"><img scaleSrc="{getimg $album['img']['img'] 468 468}" scaleType="3" scaleWidth="223" scaleHeight="223" src="./tpl/images/lazyload.gif" class="LOAD_SCALE_IMG"/></a>
			<div class="abl_smalls">
				$imgindex
				<!--{eval $list_img_counts = array(0,0,0,0);}-->
				<!--{loop $album['imgs'] $img}-->
				<!--{if count($list_img_counts) == 0}-->
				<!--{eval break;}-->
				<!--{/if}-->
				<!--{if $img['img'] != $album['img']['img']}-->
				<a target="_blank" href="{$album['url']}"><img scaleSrc="{getimg $img['img'] 100 100}" scaleType="3" scaleWidth="55" scaleHeight="55" class="LOAD_SCALE_IMG"/></a>
				<!--{eval array_pop($list_img_counts);}-->
				<!--{/if}-->
				<!--{/loop}-->
				<!--{loop $list_img_counts $img_c}-->
				<a target="_blank" class="add_img" href="{$album['url']}"><img src="./tpl/images/none_pic.png" /></a>
				<!--{/loop}-->
			</div>
			<a class="abl_mask" href="{$album['url']}">{$album['title']}</a>
			<a class="abl_title" href="{$album['url']}">{$album['title']}</a>
			<span class="abl_count" href="{$album['url']}">{$album['img_count']}张</span>
			<div class="abl_user">
				<!--{getuser $album['uid'] 0 's,20' 'abl_uimg'}-->
				<!--{getuser $album['uid'] 0 '' 'abl_uname'}-->
			</div>
			<!--{eval $index++;}-->
		</li>
		<!--{/loop}-->
	</ul>
</div>
<div class="blank20"></div>
<div class="wrapper"> 
	<div class="album_subnav">
		<a href="{u album/index}" class="c">全部</a>
		<!--{loop $_FANWE['cache']['albums']['category'] $category}-->
		<span></span>
		<a href="{$category['url']}">{$category['name']}</a>
		<!--{/loop}-->
	</div>
</div>
<div class="wrapper">
	<div class="album_sort">
		<strong>排序：</strong>
		<a{if $sort == 'new'} class="c"{/if} href="{u album sort=new}">最新</a><span>&nbsp;&nbsp;|&nbsp;&nbsp;</span><a{if $sort == 'hot'} class="c"{/if} href="{u album sort=hot}">最热</a>
	</div>
</div>
<div class="clear"></div>
<div class="wrapper album_book_list">
	<ul>
		<!--{loop $album_list $album}-->
		<li>
			<a class="abl_big" target="_blank" href="{$album['url']}"><img scaleSrc="{getimg $album['img']['img'] 468 468}" scaleType="3" scaleWidth="223" scaleHeight="223" src="./tpl/images/lazyload.gif" class="LOAD_SCALE_IMG"/></a>
			<div class="abl_smalls">
				<!--{eval $list_img_counts = array(0,0,0,0);}-->
				<!--{loop $album['imgs'] $img}-->
				<!--{if count($list_img_counts) == 0}-->
				<!--{eval break;}-->
				<!--{/if}-->
				<!--{if $img['img'] != $album['img']['img']}-->
				<a target="_blank" href="{$album['url']}"><img scaleSrc="{getimg $img['img'] 100 100}" scaleType="3" scaleWidth="55" scaleHeight="55" class="LOAD_SCALE_IMG" /></a>
				<!--{eval array_pop($list_img_counts);}-->
				<!--{/if}-->
				<!--{/loop}-->
				<!--{loop $list_img_counts $imgindex}-->
				<a target="_blank" class="add_img" href="{$album['url']}"><img src="./tpl/images/none_pic.png" /></a>
				<!--{/loop}-->
			</div>
			<a class="abl_mask" href="{$album['url']}">{$album['title']}</a>
			<a class="abl_title" href="{$album['url']}">{$album['title']}</a>
			<span class="abl_count" href="{$album['url']}">{$album['img_count']}张</span>
			<div class="abl_user">
				<!--{getuser $album['uid'] 0 's,20' 'abl_uimg,lazyload'}-->
				<!--{getuser $album['uid'] 0 '' 'abl_uname'}-->
			</div>
			<!--{eval $index++;}-->
		</li>
		<!--{/loop}-->
	</ul>
</div>
<!--{if $pager['page_count'] > 1}-->
<div class="wrapper">
	<div class="pagination mt30"> 
		<!--{subtemplate inc/pages}--> 
	</div>
</div>
<!--{/if}-->
<script type="text/javascript">
FANWE.NO_COUNTER = true;
</script>
<!--{template inc/footer}-->
